﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

namespace CommonLib
{
	[System.Serializable]
	public class ViewInfor
	{

		public string m_ViewName;

		/// <summary> btn_Back 链接的窗口视图 /// </summary>
		public UIViewBase m_PreView;
		/// <summary> btn_Close 链接的窗口视图 /// </summary>
		public UIViewBase m_CloseView;

		/// <summary> 当前窗口的BGM /// </summary>
		public AudioClip m_Bgm;
		/// <summary> bgm是否循环 /// </summary>
		public bool m_BgmLoop;


		/// <summary> /// </summary>
		public ViewType m_UIViewType;

		public string m_SortingLayer;
		public int m_SortingOrder;
		#region ViewElement
		public Dictionary<string, UIElementBase> m_ElementDic = new Dictionary<string, UIElementBase>();
		public Dictionary<string, TweenAnimBase> m_OpenAniamtion = new Dictionary<string, TweenAnimBase>();
		public Dictionary<string, TweenAnimBase> m_CloseAniamtion = new Dictionary<string, TweenAnimBase>();
		//public Selectable btn_Close;
		//public Selectable btn_Back;
		#endregion
	}
}